// 1000 个 用户相关的接口，写于此
import { http } from "../http";

// 用户登录接口
export const login = (data) =>
  http.post(`/users/login`, data, {
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
  });

// localhost:8888/users/info/:id  即-> localhost:8888/users/info?id=1
// 查看用户详情 接口  /users/info
export const getUserInfo = (id) => http.get(`/users/info?id=${id}`);
